﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Farming.EntityFarmeworkCore.Migrations
{
    public partial class farmingsystem12 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SlaughterImageses",
                columns: table => new
                {
                    SlaughterImagesId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RelevantQualification = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CorporatePhoto = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CreateByName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateById = table.Column<int>(type: "int", nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateById = table.Column<int>(type: "int", nullable: true),
                    UpdateByName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    DeleteById = table.Column<int>(type: "int", nullable: true),
                    DeleteByName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    DeleteTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SlaughterImageses", x => x.SlaughterImagesId);
                });

            migrationBuilder.CreateTable(
                name: "SlaughterInformations",
                columns: table => new
                {
                    SlaughterId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    SlaughterBatch = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    WeightToFactory = table.Column<int>(type: "int", nullable: false),
                    FactoryTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    SlaughterTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreateByName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateById = table.Column<int>(type: "int", nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateById = table.Column<int>(type: "int", nullable: true),
                    UpdateByName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    DeleteById = table.Column<int>(type: "int", nullable: true),
                    DeleteByName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    DeleteTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SlaughterInformations", x => x.SlaughterId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SlaughterImageses");

            migrationBuilder.DropTable(
                name: "SlaughterInformations");
        }
    }
}
